local thbattle__nazilin_qingmin = fk.CreateSkill {

  name = "thbattle__nazilin_qingmin",

  tags = {},

}



thbattle__nazilin_qingmin:addEffect("viewas", {
  anim_type = "defensive",
  pattern = "jink",
  prompt = "#thbattle__nazilin_qingmin",
  card_filter = function(self, player, to_select, selected)
    if #selected == 1 then return false end
    return Fk:getCardById(to_select).color == Card.Black
        and Fk:currentRoom():getCardArea(to_select) == Player.Hand
  end,
  view_as = function(self, player, cards)
    if #cards ~= 1 then
      return nil
    end
    local c = Fk:cloneCard("cadan__jink")
    c.skillName = thbattle__nazilin_qingmin.name
    c:addSubcard(cards[1])
    return c
  end,
})

return thbattle__nazilin_qingmin
